package com.lotusfall.api;

import com.github.pagehelper.PageInfo;
import com.lotusfall.pojo.User;

import java.util.List;
import java.util.Map;

public interface ApiUserService {
    PageInfo<User> queryUserList(Integer page, Integer pageSize);

    User getCurrentUser();

    User selectUserByUsername(String username);

    List<User> queryAll();

    boolean addUser(User user);

    boolean setUserAvatar(String username, String url);

    User getUserById(Long id);

}
